//
//  Singleton.h
//  LiveStar
//
//  Created by SKT1 on 2016/12/5.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Singleton : NSObject
// 用户的登录状态
@property (nonatomic, assign)BOOL isLogin;
+ (Singleton *)shareSingleton;


//归档
- (void)archiverWithArray:(NSMutableArray *)aArray fileName:(NSString *)fileName;
//解档
- (NSMutableArray *)unArchiverWithFileName:(NSString *)fileName;

- (void)archiverWithModel:(UserModel *)userModel fileName:(NSString *)fileName;
- (UserModel *)unArchiverUserModelWithFileName:(NSString *)fileName;

//偏好设置存储数据
- (void)SetDefaultsWithObject:(id)object Key:(NSString *)key;
- (instancetype)GetDefaultsWithKey:(NSString *)key;
@end
